<?php
$this->widget('ext.pagetitle.PageTitle',array(
	'parts'=>array(Yii::t('frontend','Login')),
));

$this->breadcrumbs=array(
	Yii::t('frontend','Login'),
);
?>
<div class="site-login clearfix">

	<div class="login float-left">
		<h2><?php echo Yii::t('frontend','Login'); ?></h2>

		<p><?php echo Yii::t('frontend','Enter your e-mail address and password to log in.'); ?></p>

		<fieldset>

			<?php $form=$this->beginWidget('BootstrapActiveForm', array(
				'id'=>'login-form',
				'clientOptions'=>array('validateOnSubmit'=>true),
			)); ?>

				<?php echo $form->textFieldBlock($loginModel,'username',array('class'=>'medium')); ?>

				<?php echo $form->passwordFieldBlock($loginModel,'password',array('class'=>'medium')); ?>

				<?php echo $form->checkBoxBlock($loginModel,'rememberMe'); ?>

				<?php /*<p class="forgot-password"><?php echo CHtml::link(Yii::t('frontend','Forgot password?'),''); ?></p>*/ ?>

				<div class="actions">
					<?php echo CHtml::submitButton(Yii::t('frontend','LOGIN'),array('class'=>'btn primary large')); ?>
				</div>

			<?php $this->endWidget(); ?>

		</fieldset>
	</div>

	<div class="register float-right">
		<h2><?php echo Yii::t('frontend','New user?'); ?></h2>

		<p><?php echo Yii::t('frontend','Fill out the form below to create your account.'); ?></p>

		<fieldset>

		<?php $form=$this->beginWidget('BootstrapActiveForm', array(
			'id'=>'register-form',
			'action'=>array('user/register'),
			'enableAjaxValidation'=>true,
		)); ?>

			<?php echo $form->textFieldBlock($registerModel,'email',array('class'=>'medium')); ?>

			<?php echo $form->passwordFieldBlock($registerModel,'password',array('class'=>'medium')); ?>

			<?php echo $form->passwordFieldBlock($registerModel,'password2',array('class'=>'medium')); ?>

			<?php /*
			<div class="facebook-connect">
				<p><?php echo Yii::t('frontend','Or register using your Facebook account'); ?></p>
				<fb:login-button scope="email" size="large" onlogin="window.location.reload();"><?php echo Yii::t('frontend','Connect to Facebook'); ?></fb:login-button>
			</div>
			*/ ?>

			<div class="actions">
				<?php echo CHtml::submitButton(Yii::t('frontend','REGISTER'),array('class'=>'btn primary large')); ?>
			</div>

		<?php $this->endWidget(); ?>

		</fieldset>
	</div>

	<div class="divider">&nbsp;</div>

</div>